define(function(){
    return function(goodsMsg,c){
      const checkone=document.querySelectorAll(".checkone");
      for(let i = 0; i < checkone.length; i++){
          checkone[i].checked = c;
      }
      goodsMsg.forEach(val=>{
          val.flag = Number(c);
      })
      localStorage.setItem("goodsMsg",JSON.stringify(goodsMsg))
    }
})